<div class="accountContainer">
    <div role="tabpanel">
        <ul class="nav nav-tabs adminPadding" role="tablist" id="accountTab">
            <li role="presentation" class="active"><a href="#daneOsobowe" aria-controls="" role="tab" data-toggle="tab">Personal info</a></li>
            <li role="presentation"><a href="#daneKonta" aria-controls="" role="tab" data-toggle="tab">Account info</a></li>
            <li role="presentation"><a href="#history" aria-controls="" role="tab" data-toggle="tab">Order history</a></li>
            <li role="presentation"><a href="#changePersonalInfo" aria-controls="" role="tab" data-toggle="tab">Change Personal info</a></li>
            <li role="presentation"><a href="#changeEmail" aria-controls="" role="tab" data-toggle="tab">Change email</a></li>
            <li role="presentation"><a href="#changePassword" aria-controls="" role="tab" data-toggle="tab">Change password</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane fade in active" id="daneOsobowe">
                <div class="adminTitle">
                    User data
                </div>
                <table class="table table-striped table-hover table-bordered">
                    <tr><td>Name</td><td><?php echo $deliveryData->getName(); ?></td></tr>
                    <tr><td>Surname</td><td><?php echo $deliveryData->getSurname(); ?></td></tr>
                    <tr><td>Adress</td><td><?php echo $deliveryData->getAdress(); ?></td></tr>
                    <tr><td>Phone</td><td><?php echo $deliveryData->getTelephone(); ?></td></tr>
                    <tr><td>Date of Birth</td><td><?php echo $deliveryData->getBirthday(); ?></td></tr>
                </table>
            </div>

            <div role="tabpanel" class="tab-pane" id="daneKonta">
                <div class="adminTitle">
                    Account data
                </div>
                <table class="table table-striped table-hover table-bordered">
                    <tr><td>Login</td><td><?php echo $user->getName(); ?></td></tr>
                    <tr><td>Password</td><td>******</td></tr>
                    <tr><td>Email</td><td><?php echo $user->getEmail(); ?></td></tr>
                    <tr><td>Created at</td><td><?php echo $user->getCreatedAt(); ?></td></tr>
                    <tr><td>Newsletter</td><td><?php if ($newsletter): ?>
                            <span class="glyphicon glyphicon-ok"></span>
                            <?php else: ?>
                                <span class="glyphicon glyphicon-remove"></span>
                            <?php endif; ?></td></tr>
                </table>
            </div>

            <div role="tabpanel" class="tab-pane" id="history">
                <div class="adminTitle">
                    Order history
                </div>
            </div>

            <div role="tabpanel" class="tab-pane" id="changePersonalInfo">
                <div class="adminTitle">
                    Change personal information
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon">Name</span>
                    <input type="text" class="form-control" id="changeName">
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">Surname</span>
                    <input type="text" class="form-control" id="changeSurname">
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">Address</span>
                    <input type="text" class="form-control" id="changeAddress">
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">Phone</span>
                    <input type="text" class="form-control" id="changePhone">
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">Date of Birth</span>
                    <input type="text" class="form-control" id="changeBirthdate">
                </div>
                <div class="center marginTop">
                    <button class="centerBtn">Save</button>
                </div>
            </div>

            <div role="tabpanel" class="tab-pane" id="changeEmail">
                <div class="adminTitle">
                    Change email
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">New email</span>
                    <input type="text" class="form-control" id="newEmail">
                </div>
                <div class="center marginTop">
                    <button id="saveEmail" class="centerBtn">Save</button>
                </div>
            </div>

            <div role="tabpanel" class="tab-pane" id="changePassword">
                <div class="adminTitle">
                    Change password
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">Old password</span>
                    <input type="text" class="form-control" id="oldPassword">
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">New password</span>
                    <input type="text" class="form-control" id="newPassword">
                </div>
                <div class="input-group changePassword">
                    <span class="input-group-addon changePassword">Confirm password</span>
                    <input type="text" class="form-control" id="confirmPassword">
                </div>
                <div class="center marginTop">
                    <button id="savePassword" class="centerBtn">Save</button>
                </div>

            </div>
        </div>
    </div>
</div>
